<!DOCTYPE html>
<html class="no-js" lang="">

<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <meta property="og:title" content="">
  <meta property="og:type" content="">
  <meta property="og:url" content="">
  <meta property="og:image" content="">
  <meta name="theme-color" content="#fafafa">
</head>

<body>



  <script src="js/Popper.js"></script>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
  <script src="js/jquery-3.4.1.js"></script>
  <script src="js/bootstrap.min.js"></script>

  <script type="text/javascript" src="js/vue.js"></script>
  <script type="text/javascript"></script>
  <script src="js/axios.js"></script>

  <link rel="stylesheet" href="css/mystyle.css" />




  <div id="app">
    <div class="no-padding border-bottom">
      <div class="row">
        <div id="Listname" class="col-md-12">
          <ol class="breadcrumb breadcrumb-finance">
            <li><a href="vulnerabilityList.html" style="margin-left: 90px;"> <i class="fa fa-home"
                  aria-hidden="true"></i> 主页</a></li>
            <li class="active"><a>{{message}}</a></li>
          </ol>
        </div><!--  End col -->
      </div><!-- End container -->
    </div><!--  End Section -->

    <div style="height: 100px;background-color:white;">

    </div>

    <div style="margin-bottom: 10px;">
      <div class="container">

        <div class="form-group " style="margin-top: 20px;">
          <div style="margin-bottom: 30px;"><label class="font" for="dropdownmune" control-label>选择表</label></div>
          <div class="option">
            <select class="form-control" id="dropdownmune" v-model="message" @change="changeHref(message)">
              <option id="db_vulnerability">db_vulnerability</option>
              <option id="ic_vulnerability">ic_vulnerability</option>
              <option id="net_vulnerability">net_vulnerability</option>
              <option id="os_vulnerability">os_vulnerability</option>
            </select>
          </div>
        </div>
      </div>
    </div>
  </div>

  <script type="text/javascript" src="js/axios.js"></script>
  <script>

    var vu = new Vue({
      el: '#app',
      data: {
        message: "",
        Obs: {},
      },
      methods: {
        //ic_vulnerability net_vulnerability os_vulnerability os_vulnerability
        changeHref: function (message) {
          console.log('1');
          console.log(message);
          addCookie("sheet", message);
          console.log('getCookie:' + getCookie("sheet"));
          window.location.href = "List.html";
        }
      }
    })
  </script>

  <script language="javascript">
    function pushname() {
      var str = document.getElementById("dropdownmune").value
      location.href = "vulnerabilityAdd.html?dropdownmune=" + str;
    }
    //写Cookie
    function addCookie(objName, objValue) {
      var str = objName + "=" + escape(objValue); //编码
      // if (objHours > 0) {//为0时不设定过期时间，浏览器关闭时cookie自动消失
      //   var date = new Date();
      //   var ms = objHours * 3600 * 1000;
      //   date.setTime(date.getTime() + ms);
      //   str += "; expires=" + date.toGMTString();
      // }
      document.cookie = str;
    }
    function getCookie(cookiename) {
      var name = cookiename + "=";
      var cs = document.cookie.split(';');
      for (var i = 0; i < cs.length; i++) {
        var c = cs[i].trim();
        if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
      }
    }
  </script>





</body>

</html>